import 'package:flutter/cupertino.dart';
import 'package:thinking/utils/_.dart';


class Panel extends StatelessWidget{

  final Widget child;
  final double top;
  final double bottom;
  final double left;
  final double right;

  Panel({required this.child,this.top:5,this.bottom:5,this.left:10,this.right:10});

  @override
  Widget build(BuildContext context) {
      return Container(
        width: Screen.width(context),
        child: Padding(
          padding: EdgeInsets.only(left: left,right:right,top: top,bottom: bottom),
          child: child,
        ),
      );
  }

}